package org.imaginedays.java.design.patter.simplefactory;

public class OperationFactory {
	
	public static Operation createOperation(Operate operate){
		
		Operation oper = null;
		
		switch (operate) {
		case ADD:
			oper = new OperationAdd();
			break;
		case SUB:
			oper = new OperationSub();
			break;
		}
		return oper;
		
	}

}
